#include "comm.hpp"
#include <unistd.h>

int main()
{
    // shm.Create();
    // sleep(5);
    // shm.Attach();
    // shm.VirtualAddr();
    // sleep(5);

    // shm.Destroy();
    Shm shm(pathname, projid, CREATER);
    char* mem = (char*)shm.VirtualAddr();
    while(true)
    {
        printf("%s\n", mem);
        sleep(1);
    }
    return 0;
}